using UnityEngine;
using UnityEngine.UI;

namespace CGF
{
    public class PrizeLabeDemo : MonoBehaviour
    {
        public PrizeLaba laba;
        public CButton btnStart;

        public void Awake()
        {
            laba.Init(10, (RectTransform cell, int index, bool isInit) =>
            {
                cell.GetComponentInChildren<Text>().text = index.ToString();
            });


            btnStart.SetClick(() =>
            {

                laba.StartRun(0, (RectTransform cell, int index) =>
                {
                    Debug.Log($"停在{index}");
                });

            });
        }
    }
}
